mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 936309 - [FDN] "Add contact" is broken. r=vicamo
This commit is contained in:
parent
836f4fdce4
commit
30097a69a1
@ -919,7 +919,8 @@ let RIL = {
|
||||
|
||||
let contact = options.contact;
|
||||
let iccid = RIL.iccInfo.iccid;
|
||||
if (contact.contactId.startsWith(iccid)) {
|
||||
if (typeof contact.contactId === "string" &&
|
||||
contact.contactId.startsWith(iccid)) {
|
||||
let recordIndex = contact.contactId.substring(iccid.length);
|
||||
contact.pbrIndex = Math.floor(recordIndex / ICC_MAX_LINEAR_FIXED_RECORDS);
|
||||
contact.recordId = recordIndex % ICC_MAX_LINEAR_FIXED_RECORDS;
|
||||
|
Loading…
Reference in New Issue
Block a user