Skip to content

Commit

Permalink
fix(react-components): Fix a small bug in compare equalsIgnoreCaseAnd…
Browse files Browse the repository at this point in the history
…Space and use correct undo icon
  • Loading branch information
nilscognite authored Sep 13, 2024
1 parent 140eab7 commit e3575b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export class UndoCommand extends RenderTargetCommand {
// ==================================================

public override get icon(): string {
return 'Refresh'; // Should be 'Restore' but it doesn't exist
return 'Restore';
}

public override get tooltip(): TranslateKey {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export function equalsIgnoreCaseAndSpace(value1: string, value2: string): boolea
}
const lowerChar2 = char2.toLowerCase();
if (lowerChar2 === lowerChar1) {
j++;
break;
}
return false;
Expand Down

0 comments on commit e3575b0

Please sign in to comment.