Skip to content

Commit

Permalink
Fix a bug where un-needed data is being displayed due to keyword bug
Browse files Browse the repository at this point in the history
This should fix #6. Relavant bug report: firefly-iii/firefly-iii#1812
  • Loading branch information
emansih committed Oct 23, 2018
1 parent 0f57e69 commit 4a75b29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -221,7 +221,7 @@ class HomeActivity: BaseActivity(){
}
drawerItem.identifier == 11L -> {
val bundle = bundleOf("fireflyUrl" to baseUrl,
"access_token" to accessToken, "transactionType" to "expenses")
"access_token" to accessToken, "transactionType" to "expense")
changeFragment(TransactionFragment().apply { arguments = bundle })
}
drawerItem.identifier == 12L -> {
Expand Down
Expand Up @@ -112,7 +112,7 @@ class AddTransactionFragment: BaseFragment() {
private fun convertString(pleaseLowerCase: Boolean): String{
var convertedString = ""
when {
Objects.equals(transactionType, "expenses") -> convertedString = if(pleaseLowerCase){
Objects.equals(transactionType, "expense") -> convertedString = if(pleaseLowerCase){
"withdrawal"
} else {
"Withdrawal"
Expand Down

0 comments on commit 4a75b29

Please sign in to comment.