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]() steps[currentStep]()
}, },
confirmButton = { confirmButton = {
if (currentStep == steps.size - 1) { if (currentStep == steps.lastIndex) {
TextButton( TextButton(
enabled = inputsAreValid, enabled = inputsAreValid,
onClick = { onClick = {