Skip to content

Commit 41212c7

Browse files
Merge pull request #1195 from akintewe/fix-1194
Fix: Update starknet kit and starknet js
2 parents f2388d2 + 7f4b775 commit 41212c7

6 files changed

Lines changed: 10 additions & 20822 deletions

File tree

components/UI/notifications/notificationDetail.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const NotificationDetail: FunctionComponent<NotificationDetailProps> = ({
4040
if (notification.type === NotificationType.TRANSACTION) {
4141
if (isLoading) {
4242
return <CircularProgress color="secondary" size={24} />;
43-
} else if (isError || data?.isRejected()) {
43+
} else if (isError || data?.isReverted()) {
4444
return <CloseCircleIcon width="24" color="" />;
4545
} else {
4646
return <DoneIcon width="24" color={theme.palette.primary.main} />;
@@ -61,7 +61,7 @@ const NotificationDetail: FunctionComponent<NotificationDetailProps> = ({
6161
? "pending"
6262
: isError
6363
? "error"
64-
: data?.isRejected()
64+
: data?.isReverted()
6565
? "error"
6666
: "success";
6767
}, [notification, isLoading, error, isError, data]);

hooks/useNotificationManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function useNotificationManager() {
4040

4141
const checkTransactionStatus = async (txHash: string) => {
4242
const data = await provider.getTransactionReceipt(txHash);
43-
if (data?.isRejected() || data?.isReverted()) {
43+
if (data?.isReverted()) {
4444
updateNotificationStatus(txHash, "error");
4545
setUnread(true);
4646
} else if (data?.isSuccess()) {

0 commit comments

Comments
 (0)