Skip to content

Commit

Permalink
Change to MODAL_VIEWED
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinpaypal committed Apr 12, 2024
1 parent ababf62 commit bd9c0b7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion library/src/main/java/com/paypal/messages/ModalFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ internal class ModalFragment(

// This function is called when the modal is usually already instantiated
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
logEvent(AnalyticsEvent(eventType = EventType.MODAL_OPENED))
logEvent(AnalyticsEvent(eventType = EventType.MODAL_VIEWED))
this.onLoading()
val url = Api.createModalUrl(clientId, amount, buyerCountry, offerType)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ enum class EventType {
MESSAGE_CLICKED,
MODAL_RENDERED,
MODAL_CLICKED,
MODAL_OPENED,
MODAL_VIEWED,
MODAL_CLOSED,
MODAL_ERROR,
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class EventTypeTest {

@Test
fun testModalOpen() {
assertEquals(EventType.MODAL_OPENED.toString(), "modal_opened")
assertEquals(EventType.MODAL_VIEWED.toString(), "modal_opened")
}

@Test
Expand Down

0 comments on commit bd9c0b7

Please sign in to comment.