I know that as gamblers, everyone can relate to this question, as we have surely experienced it in real situations.
Suppose our bankroll is $100 and it has already grown to $500, would you quit or continue? Conversely, if with our bankroll, we are down to $10, would you still continue or save the remaining $10? I used specific amounts to make it easier to discuss this situation. I understand that we all gamble with different amounts based on our income, but consider this as an example. You can mention any amount you want based on your personal experience; it doesn't matter.
I will use the example data that you made, but it is quite difficult to visualize it, because when ii my mind is in a good state, my emotions are in a calm state, there is no greed and there is nothing that can influence the decision when I am in this state, because honestly if in the game and we manage to get a win the emotions we get from gambling fluctuate, for example, maybe at the beginning of gambling when you have $100 thinking that when you get $200/100% the return will stop, but already at the target level it becomes having second thoughts and feeling dissatisfied because you want more before withdrawing and so on like that, which could end up with a withdrawal at $150 or because you lose at $50 it doesn't even happen in withdrawal because it runs out of play again, the mental state at that moment is sometimes very different sir.
But if with the realization now with the amount won as you mentioned, I will withdraw it and sleep well then the next day I shop with my friends or relatives to celebrate the victory.