Skip to content

Commit 86e19c6

Browse files
author
Achyut Kumar M
committed
dimiss sheet prior to syncing to OSM
1 parent 3214f33 commit 86e19c6

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

GoInfoGame/GoInfoGame/quests/QuestProtocols.swift

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,14 @@ class QuestBase {
4646
print("Unknown Stored element type received")
4747
}
4848
// Sync using datasyncmanager
49+
50+
// Dismiss sheet after syncing to db
51+
MapViewPublisher.shared.dismissSheet.send(true)
52+
4953

5054
DatasyncManager.shared.syncDataToOSM {
5155
print("SYNC DONE")
52-
DispatchQueue.main.async {
53-
MapViewPublisher.shared.dismissSheet.send(true)
54-
}
56+
5557
}
5658
}
5759
}

0 commit comments

Comments
 (0)