Skip to content

Commit 5844f2f

Browse files
committed
Fixes
1 parent 80fba53 commit 5844f2f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

ACHNBrowserUI/ACHNBrowserUI/fr.lproj/Localizable.strings

+1-1
Original file line numberDiff line numberDiff line change
@@ -874,4 +874,4 @@ Merci d'être respecteux. Tout code signalé sera supprimé";
874874
"Add your comment" = "Ajouter votre commentaire";
875875
"Send" = "Envoyer";
876876
"In game name / username" = "Nom du joueur / nom d'utilisateur";
877-
"You need to have an iCloud account in your device settings in order to add comments" = "Vous devez avoir un compte iCloud dans les réglages de votre appareil pour ajouter des commentaires"
877+
"You need to have an iCloud account in your device settings in order to add comments" = "Vous devez avoir un compte iCloud dans les réglages de votre appareil pour ajouter des commentaires";

ACHNBrowserUI/ACHNBrowserUI/packages/Backend/Sources/Backend/models/DodoCode.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public struct DodoCode: Identifiable, Equatable {
2323

2424
public let id: String
2525
public let code: String
26-
public let report: Int
27-
public let upvotes: Int
26+
public var report: Int
27+
public var upvotes: Int
2828
public let islandName: String
2929
public let text: String
3030
public let fruit: Fruit

ACHNBrowserUI/ACHNBrowserUI/views/dodocode/DodoCodeFormView.swift

+2
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ struct DodoCodeFormView: View {
145145
specialCharacter: self.visitor)
146146
if let record = self.isEditing?.record {
147147
code.record = record
148+
code.upvotes = self.isEditing?.upvotes ?? 0
149+
code.report = self.isEditing?.report ?? 0
148150
DodoCodeService.shared.edit(code: code)
149151
} else {
150152
DodoCodeService.shared.add(code: code)

0 commit comments

Comments
 (0)