refactor: Use lastIndex

Co-authored-by: Ax333l <main@axelen.xyz>
This commit is contained in:
Ushie 2024-07-11 01:07:57 +03:00 committed by GitHub
parent b26fe30861
commit b8a85c4891
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -109,7 +109,7 @@ fun ImportPatchBundleDialog(
steps[currentStep]()
},
confirmButton = {
if (currentStep == steps.size - 1) {
if (currentStep == steps.lastIndex) {
TextButton(
enabled = inputsAreValid,
onClick = {