Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORDERTIMESTAMP EMPTY, WHY? #1

Open
Johnosezele opened this issue Apr 22, 2021 · 0 comments
Open

ORDERTIMESTAMP EMPTY, WHY? #1

Johnosezele opened this issue Apr 22, 2021 · 0 comments

Comments

@Johnosezele
Copy link

Johnosezele commented Apr 22, 2021

I always get 'no active order' toast in the Current Order fragment when logged in as a courier even though I created an order successfully when logged in as a customer, note this order is shown successfully in the firebase database.

This code snippet below is from the CURRENTORDERINTERACTOR java class. It shows that I'm getting my issue because orderTimestamp is "empty".

public void getOrderData(@NotNull String orderTimestamp) {
if(!orderTimestamp.equals(PREFERENCES_EMPTY)) {
FirebaseOpsHelper firebaseOpsHelper = new FirebaseOpsHelper(this);
firebaseOpsHelper.getOrderFromDbWithTimestamp(orderTimestamp);
} else {
mPresenter.sendToast(getInteractorContext().getString(R.string.toast_no_current_order));
mPresenter.hideProgressDialog();
}
}

My question is WHY IS ORDERTIMESTAMP EMPTY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant