mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 17:40:43 +00:00
[skip ci] Update permission check logic
This commit is contained in:
parent
1b92a86842
commit
2393fca435
1 changed files with 3 additions and 4 deletions
|
@ -91,14 +91,13 @@ class BuyWebViewPageBodyState extends State<BuyWebViewPageBody> {
|
|||
return;
|
||||
}
|
||||
|
||||
final url = await _webViewController!.getUrl();
|
||||
final urlString = url.toString();
|
||||
final url = (await _webViewController!.getUrl())?.toString();
|
||||
if (url == null) {
|
||||
throw Exception('_saveOrder: Url is null');
|
||||
}
|
||||
|
||||
if (urlString.toString().contains(keyword)) {
|
||||
final urlParts = urlString.split(splitSymbol);
|
||||
if (url.contains(keyword)) {
|
||||
final urlParts = url.split(splitSymbol);
|
||||
orderId = urlParts.last;
|
||||
widget.ordersStore.orderId = orderId;
|
||||
|
||||
|
|
Loading…
Reference in a new issue