This commit is contained in:
@@ -21,6 +21,11 @@ export const getBindingSuccessState = (state, phone, mode) => {
|
||||
if (mode === 'customer') {
|
||||
return { customerPhone: phone, assetPhoneIsOwn: null, needBindPhone: false };
|
||||
}
|
||||
// Even if the customer phone was unavailable, successful binding of a
|
||||
// previously unbound asset proves an association now exists, not its owner.
|
||||
if (state.assetPhoneBound === false) {
|
||||
return { assetPhoneBound: true, assetPhoneIsOwn: null, needBindPhone: false };
|
||||
}
|
||||
// An ambiguous success response does not identify which phone was changed.
|
||||
return { needBindPhone: false };
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user