refactored code
This commit is contained in:
@@ -624,7 +624,8 @@ export function SberPaymentForm({ mode, initialData }: SberPaymentFormProps) {
|
||||
onPrev={currentStep > 0 ? handleBack : undefined}
|
||||
onNext={!isLastStep ? handleNext : undefined}
|
||||
showSubmit={isLastStep}
|
||||
onSubmit={isLastStep ? doSubmit : undefined}
|
||||
saveOnEveryStep={mode === "edit"}
|
||||
onSubmit={doSubmit}
|
||||
submitLabel={
|
||||
mode === "create"
|
||||
? t("sberPayments.buttons.create", "Sber töleg (talyplar üçin) dörediň")
|
||||
|
||||
Reference in New Issue
Block a user