Skip to content

Commit

Permalink
Toast for cancel sign message does not show (#995)
Browse files Browse the repository at this point in the history
* Fix toast for cancel action on sign message

* Fix cancel sign message toast

* Update changelog
  • Loading branch information
mgavrila committed Dec 18, 2023
1 parent 2c40c21 commit c85d7e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion src/hooks/signMessage/useSignMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import {
import {
clearSignedMessageInfo,
setSignSession,
setSignSessionState
setSignSessionState,
setSignTransactionsCancelMessage
} from 'reduxStore/slices';
import {
LoginMethodsEnum,
Expand Down Expand Up @@ -94,6 +95,7 @@ export const useSignMessage = () => {
}
})
);
dispatch(setSignTransactionsCancelMessage(errorMessage));
};

const checkCallbackSessionId = (
Expand Down

0 comments on commit c85d7e0

Please sign in to comment.