Skip to content

Commit

Permalink
fix: fix bug re: setting verification link later
Browse files Browse the repository at this point in the history
  • Loading branch information
HashEngineering committed Sep 3, 2024
1 parent daf0419 commit 9a157cc
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class VotingRequestDetailsFragment : Fragment(R.layout.fragment_voting_request_d
binding.titleBar.setNavigationOnClickListener {
requireActivity().finish()
}
// TODO Mock identity


binding.verify.setOnClickListener {
safeNavigate(
Expand All @@ -64,7 +62,7 @@ class VotingRequestDetailsFragment : Fragment(R.layout.fragment_voting_request_d
dateFormat.format(endTime)
} ?: "Voting Period not found"
binding.votingRange.text = votingPeriod
if (myUsernameRequest?.link != null) {
if (myUsernameRequest?.link != null && myUsernameRequest.link != "") {
binding.link.text = myUsernameRequest.link
binding.linkLayout.isVisible = true
binding.verfiyNowLayout.isVisible = false
Expand Down Expand Up @@ -93,7 +91,6 @@ class VotingRequestDetailsFragment : Fragment(R.layout.fragment_voting_request_d
""
).show(requireActivity())
}

}
}

Expand Down

0 comments on commit 9a157cc

Please sign in to comment.