Skip to content

Commit ac03e69

Browse files
committed
Fix motivation edit in Notes tab
1 parent 0729d57 commit ac03e69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/character/CharacterDetailScreenModel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ class CharacterDetailScreenModel(
319319
updateCharacter { it.copy(note = note) }
320320
}
321321

322-
suspend fun updateMotivation(note: String) {
323-
updateCharacter { it.copy(note = note) }
322+
suspend fun updateMotivation(motivation: String) {
323+
updateCharacter { it.copy(motivation = motivation) }
324324
}
325325

326326
suspend fun updateCharacterAmbitions(ambitions: Ambitions) {

0 commit comments

Comments
 (0)