diff --git a/wails-frontend/src/pages/PasswordPromptHandler/Sign.tsx b/wails-frontend/src/pages/PasswordPromptHandler/Sign.tsx index e41dac4e..f1215137 100644 --- a/wails-frontend/src/pages/PasswordPromptHandler/Sign.tsx +++ b/wails-frontend/src/pages/PasswordPromptHandler/Sign.tsx @@ -87,7 +87,9 @@ export function Sign() { const signData = req.Data as SignBodyProps; const [error, setError] = useState(null); const [errorMessage, setErrorMessage] = useState(''); - const [fees, setFees] = useState(toMAS(signData.Fees).toString()); + const [fees, setFees] = useState( + toMAS(signData.Fees || '0').toString(), + ); const [isEditing, setIsEditing] = useState(false); function save(e: SyntheticEvent) { @@ -96,11 +98,7 @@ export function Sign() { EventsOnce(events.promptResult, handleResult); - SendSignPromptInput( - password, - fromMAS(fees || '0').toString(), - req.CorrelationID, - ); + SendSignPromptInput(password, fromMAS(fees).toString(), req.CorrelationID); } function handleResult(result: promptResult) {