Skip to content

Commit c614dda

Browse files
committed
chore: change ordering for notification commit
1 parent bb8f4ba commit c614dda

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/services/UserNotifications.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ define(function (require, exports, module) {
123123
* @param {string} notificationID - The notification ID that was dismissed
124124
*/
125125
async function handleNotificationDismiss(notificationID) {
126-
// Call server API to acknowledge (don't wait for success)
127-
await acknowledgeNotificationToServer(notificationID);
128-
129126
// Always mark as shown locally to prevent re-showing, even if API fails
130127
markNotificationAsShown(notificationID);
128+
129+
// Call server API to acknowledge
130+
return acknowledgeNotificationToServer(notificationID);
131131
}
132132

133133
/**

0 commit comments

Comments
 (0)