Skip to content

Commit

Permalink
fix: capitalize error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jimcase committed Sep 19, 2023
1 parent 71bad68 commit 1d12873
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/summit-2023/src/pages/Nominees/Nominees.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import {
getSlotNumber,
getVoteReceipt,
} from '../../common/api/voteService';
import { copyToClipboard, getSignedMessagePromise } from '../../utils/utils';
import {capitalizeFirstLetter, copyToClipboard, getSignedMessagePromise} from '../../utils/utils';
import { buildCanonicalLoginJson, submitLogin } from 'common/api/loginService';
import { getUserInSession, saveUserInSession, tokenIsExpired } from '../../utils/session';
import { setVoteReceipt, setWalletIsLoggedIn } from '../../store/userSlice';
Expand Down Expand Up @@ -189,7 +189,7 @@ const Nominees = () => {
await castAVoteWithDigitalSignature(requestVoteObject);
eventBus.publish('showToast', 'Vote submitted successfully');
} catch (e) {
eventBus.publish('showToast', e.message, true);
eventBus.publish('showToast', capitalizeFirstLetter(e.message), true);
}
};

Expand Down

0 comments on commit 1d12873

Please sign in to comment.