async next() {
switch (this.currentStep) {
case 0: {
if (this.currentConfig.currentConfiguration.purchaseCode == null) {
this.msg.error('Purchase code is invalid.');
return;
}
const result = await firstValueFrom(
this.updatePurchaseGql.mutate({
code: this.currentConfig.currentConfiguration.purchaseCode ?? '',
email: this.email,
})
);
console.log(result);
if (
result.data?.updatePurchaseCode.status ==
UpdatePurchaseCodeStatus.ClientFound
) {
this.currentStep += 1;
}
if (
result.data?.updatePurchaseCode.status ==
UpdatePurchaseCodeStatus.Invalid
) {
this.currentStep += 1;
}
if (
result.data?.updatePurchaseCode.status == UpdatePurchaseCodeStatus.Ok
) {
}
break;
}