Skip to content

Fixed text-labelling issue Planned Charge when Friendly-text set True#18

Merged
pacemaker82 merged 1 commit intopacemaker82:mainfrom
Mikebert4:patch-1
Apr 23, 2024
Merged

Fixed text-labelling issue Planned Charge when Friendly-text set True#18
pacemaker82 merged 1 commit intopacemaker82:mainfrom
Mikebert4:patch-1

Conversation

@Mikebert4
Copy link
Copy Markdown
Contributor

Love the card - spotted something that might be intended behaviour, but that felt off... so here's a PR for a fix

Previous behaviour:

when friendlyText = "NoCharge":

line 405 replaces this with 'Charge to "Limit"' and then line 406 replaces the word "Charge" with "Planned Charge"

Resulting in friendlyText = Planned Charge to "Limit" - which seemed not the desired result

Previous behaviour:

when friendlyText = "NoCharge":

line 405 replaces this with 'Charge to "Limit"' and then line 406 replaces the word "Charge" with "Planned Charge"

Resulting in friendlyText = Planned Charge to "Limit"  - which seemed not the desired result
@pacemaker82
Copy link
Copy Markdown
Owner

good catch - thanks!

@pacemaker82 pacemaker82 merged commit 4d4c4e5 into pacemaker82:main Apr 23, 2024
@Mikebert4 Mikebert4 deleted the patch-1 branch April 23, 2024 15:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants