Hey everyone,
I got really far into my app with quite complex functionalities and setups (also thanks to a few members of this community that helped me on another issue I had)
For my amateur soccer league app, every player has his own wallet with a virtual currency called “UNO points” . It is of course at the basis just a “number” field from user’s data on which I put worfklows.
One of the functions is the “transfer” , players can transfer their uno points to any other user, workflow looks quite simple for that :
when “confirm” button is clicked => makes changes to a thing
=> thing to change " current user"
Field to change => solde UNO = current user’s solde UNO - input transfers amount’s value
Right? this one works like a charm, but for some reason I don’t get, for the user that must receives this transfer, it doesnt work
Workflow (on the same “when confirm button is clicked”)
Makes changes to a thing : “search input’s value” or “search for user:first item” with “same ID” as the only constraint
Field to change => solde UNO = this user’s solde UNO + input transfert’s value
this user is well targeted, but his wallet always become the value of “input transfer’s value” without taking in account the value already present in “solde UNO” for this user
That means if I send him 500 points, my account goes from 1000 to 500 points and that’s correct, but the user that receives this transfer will have a wallet of “500 points” , whatever was his wallet’s amount.
If I press multiple times “confirm” for these 500 points, the sender’s wallet will keep subtracting 500 points, which is the correct behaviour I am expecting
But the receiver will stay at 500 points, so I guess the behaviour for the receiver is “replace this wallet’s amount with input transfer’s value” and this is not the correct behaviour
I really tried to see this from different angles but I really am lost here on what am I doing wrong. This is frustrating because it is one of the last steps for me to 100% finish this app which I am so proud of…
Thank u in advance if you read it all and a major thank u if u have a solution for me
Cheers guys
Screenshots :