Skip to content

Commit

Permalink
Fix assert failure when marking order as read
Browse files Browse the repository at this point in the history
  • Loading branch information
itsmeichigo committed Sep 30, 2024
1 parent 47fd79f commit 5bcc48a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WooCommerce/Classes/Model/MarkOrderAsReadUseCase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ struct MarkOrderAsReadUseCase {
/// and then we compare local `orderID` with the one from remote `Note`.
/// If they match we mark it as read.
/// Returns syncronized note if marking was successful and error if some error happened
@MainActor
static func markOrderNoteAsReadIfNeeded(stores: StoresManager, noteID: Int64, orderID: Int) async -> Result<Note, Error> {
let syncronizedNoteResult: Result<Note, Error> = await withCheckedContinuation { continuation in
let action = NotificationAction.synchronizeNotification(noteID: noteID) { syncronizedNote, error in
Expand Down

0 comments on commit 5bcc48a

Please sign in to comment.