Use cached zap if we have it

This commit is contained in:
William Casarin
2023-02-10 12:48:28 -08:00
parent 715d4aa35d
commit b5c967e161
2 changed files with 24 additions and 16 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ struct ZapsView: View {
init(state: DamusState, target: ZapTarget) {
self.state = state
self._model = StateObject(wrappedValue: ZapsModel(profiles: state.profiles, pool: state.pool, target: target))
self._model = StateObject(wrappedValue: ZapsModel(state: state, target: target))
}
var body: some View {