fix(GiftedDialog): preserve recipient when changing giver project

Modified selectProject() to only set receiver to "You" if no receiver
has been selected yet, preventing recipient from being reset when
changing giver project in Project-to-Person context.
This commit is contained in:
Jose Olarte III
2025-11-18 15:50:11 +08:00
parent 06fdaff879
commit c4eb6f2d1d

View File

@@ -483,10 +483,13 @@ export default class GiftedDialog extends Vue {
image: project.image, image: project.image,
handleId: project.handleId, handleId: project.handleId,
}; };
// Only set receiver to "You" if no receiver has been selected yet
if (!this.receiver || !this.receiver.did) {
this.receiver = { this.receiver = {
did: this.activeDid, did: this.activeDid,
name: "You", name: "You",
}; };
}
this.firstStep = false; this.firstStep = false;
} }