Skip to content

Commit

Permalink
fix(@desktop/communities): Deleting index when updating owners model …
Browse files Browse the repository at this point in the history
…and minor fixes

Issue #10254
  • Loading branch information
endulab authored and jrainville committed May 5, 2023
1 parent 42a5236 commit 216a1d1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ QtObject:
result = initTokenOwnersItem("", "", owner)
))
let index = self.createIndex(i, 0, nil)
defer: index.delete
self.dataChanged(index, index, @[ModelRole.TokenOwnersModel.int])
return

Expand Down
1 change: 0 additions & 1 deletion src/app/modules/main/module.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1221,4 +1221,3 @@ method activateStatusDeepLink*[T](self: Module[T], statusDeepLink: string) =
method onDeactivateChatLoader*[T](self: Module[T], sectionId: string, chatId: string) =
if (sectionId.len > 0 and self.channelGroupModules.contains(sectionId)):
self.channelGroupModules[sectionId].onDeactivateChatLoader(chatId)

2 changes: 1 addition & 1 deletion src/app_service/service/community_tokens/service.nim
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ QtObject:
collectibleAndAmount.communityToken.chainId,
)
except RpcException:
error "Error minting collectibles", message = getCurrentExceptionMsg()
error "Error airdropping collectibles", message = getCurrentExceptionMsg()

proc getFiatValue*(self: Service, cryptoBalance: float, cryptoSymbol: string): float =
if (cryptoSymbol == ""):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import shared.controls 1.0
Control {
id: root

// Expected roles: name, walletAddress, imageSource, amount, selfDestructAmount and selfDestruct
// Expected roles: name, walletAddress, imageSource, amount
property var model

property string tokenName
Expand Down

0 comments on commit 216a1d1

Please # to comment.