From c85d7e0674c7dc1edf06ea856f47a82713c0b1ec Mon Sep 17 00:00:00 2001 From: Gavrila Andrei Date: Mon, 18 Dec 2023 17:17:37 +0200 Subject: [PATCH] Toast for cancel sign message does not show (#995) * Fix toast for cancel action on sign message * Fix cancel sign message toast * Update changelog --- CHANGELOG.md | 3 ++- src/hooks/signMessage/useSignMessage.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa4d2eeb4..61eea92a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] -- [Changed message signing URL to use `addOriginToLocationPath`](https://github.com/multiversx/mx-sdk-dapp/pull/994) +- [Fix cancel sign message toast](https://github.com/multiversx/mx-sdk-dapp/pull/995) +- [⚠️ Breaking change: message signing URL to use `addOriginToLocationPath`](https://github.com/multiversx/mx-sdk-dapp/pull/994) ## [[v2.25.2]](https://github.com/multiversx/mx-sdk-dapp/pull/993)] - 2023-12-18 diff --git a/src/hooks/signMessage/useSignMessage.ts b/src/hooks/signMessage/useSignMessage.ts index 32cb01dbb..f5e330cd8 100644 --- a/src/hooks/signMessage/useSignMessage.ts +++ b/src/hooks/signMessage/useSignMessage.ts @@ -14,7 +14,8 @@ import { import { clearSignedMessageInfo, setSignSession, - setSignSessionState + setSignSessionState, + setSignTransactionsCancelMessage } from 'reduxStore/slices'; import { LoginMethodsEnum, @@ -94,6 +95,7 @@ export const useSignMessage = () => { } }) ); + dispatch(setSignTransactionsCancelMessage(errorMessage)); }; const checkCallbackSessionId = (